package com.shangyueshang.controller.supply;

import com.shangyueshang.request.PageReq;
import com.shangyueshang.request.ShippingDTO;
import com.shangyueshang.response.HttpResult;
import com.shangyueshang.response.PageResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2022/2/18 18:03
 * @version: v1.0.0
 */
@RestController
@RequestMapping("/shipping")
public class ShippingController {

    /**
     * 分页查询
     *
     * @param pageReq
     * @return
     */
    @PostMapping("/findPage")
  //  @PreAuthorize("hasAuthority('supply:shipping:view')")
    public HttpResult findPage(@RequestBody PageReq pageReq) {
        return HttpResult.ok(new PageResult());
    }

    /**
     * 保存
     *
     * @param request
     * @return
     */
    @PostMapping("/save")
  //  @PreAuthorize("hasAuthority('supply:shipping:add') and hasAuthority('supply:shipping:edit')")
    public HttpResult save(@RequestBody ShippingDTO request) {
        return null;
    }

}

